package com.example.judge.controller;


import com.example.api.domain.JudgeResult;
import com.example.api.domain.JudgeSubmitDTO;
import com.example.core.controller.BaseController;
import com.example.core.domain.R;
import com.example.judge.service.judge.IJudgeService;
import com.example.scurity.annotation.InnerAuth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JudgeController extends BaseController {

    @Autowired
    private IJudgeService judgeService;

    @PostMapping("/doJudge")
    @InnerAuth
    public R<JudgeResult> doJudge(@RequestBody JudgeSubmitDTO judgeSubmitDTO) {
        //JudgeResult judgeResult = judgeService.doJudge(judgeSubmitDTO);
        //return R.ok(judgeResult);
        return null;
    }
}
